package com.situ.mall.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.situ.mall.pojo.bo.ProductSearchBO;
import com.situ.mall.pojo.entity.Product;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

	List<Product> selectByPage(@Param(value = "productSearchBO")ProductSearchBO productSearchBO, @Param(value = "offset")Integer offset,@Param("limit") Integer limit);

	int selectTotalCount(ProductSearchBO productSearchBO);
}